package com.luo.backend.dto;

import com.luo.backend.entity.Food;

/**
 * 商品预览DTO（用于商家列表）
 */
public class FoodPreviewDTO {
    
    private Long id;
    private String name;
    private String image;
    
    // 构造函数
    public FoodPreviewDTO() {}
    
    public FoodPreviewDTO(Food food) {
        this.id = food.getId();
        this.name = food.getName();
        this.image = food.getImage();
    }
    
    // Getters and Setters
    public Long getId() {
        return id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public String getImage() {
        return image;
    }
    
    public void setImage(String image) {
        this.image = image;
    }
}



